//
//  LLTagView.h
//  标签
//
//  Created by admin on 2018/12/10.
//  Copyright © 2018 LG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LLTagConfig.h"

NS_ASSUME_NONNULL_BEGIN

@interface LLTagView : UIView

@property (nonatomic, assign) BOOL allowMutiSelect;     // 是否允许多选
@property (nonatomic, assign) BOOL canCancelSelect;     // 能否取消选中

@property (nonatomic, strong) LLTagConfig *config;

@property (nonatomic, weak) UIView *needReloadView;    // 需要重新布局的view

- (instancetype)initWithFrame:(CGRect)frame dataArray:(NSArray *)dataArray selectItems:(void(^)(NSArray *selectArray))selectItems;

- (instancetype)initWithFrame:(CGRect)frame dataArray:(NSArray *)dataArray selectItems:(void(^)(NSArray *selectArray))selectItems config:(nullable LLTagConfig *)config;

- (void)resetView;

- (void)setupDatasArray:(NSArray *)dataArray;

///设置默认选中某一个
- (void)setDefaultSelectIndex:(NSInteger)index;

///设置默认选中多个
- (void)setDefaultSelectIndexs:(NSArray<NSNumber *> *)indexs;

@end

NS_ASSUME_NONNULL_END
